package com.mg.yygh.hosp.service;

import com.mg.yygh.model.hosp.Schedule;
import com.mg.yygh.vo.hosp.ScheduleOrderVo;
import com.mg.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author M_Dragon
 * @date 2022/8/31/031 16:52
 */
public interface ScheduleService {
    Page<Schedule> getPage(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    void save(Map<String, Object> map);

    void remove(String hoscode, String hosScheduleId);

    Map<String, Object> getScheduleRule(Long page, Long limit, String hoscode, String depcode);

    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);

    Map<String, Object> getBookingScheduleRule(int page, int limit, String hoscode, String depcode);;

    Schedule getById(String hosScheduleId);

    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    //更新排班数据，用于mq
    void update(Schedule schedule);
}
